#ifndef LCOMINDEX_H_
#define LCOMINDEX_H_

#include <MAUI/Screen.h>
#include <MAUI/ListBox.h>
#include <MAUtil/Map.h>

#include "../DAOs/DTO.h"
#include "../DAOs/LRESProcessor.h"
#include "../Widgets/UIBuilder.h"
#include "../Widgets/LRESItemWidget.h"

using namespace MAUI;
using namespace MAUtil;

class LCOMIndex : public Screen, public LRESListener, public WidgetListener {
public:
	LCOMIndex();
	~LCOMIndex();
	void keyPressEvent(int keyCode, int nativeCode);
	void itemReceived(LRESItem& item);
	void processingComplete();
	void triggered(Widget* sender);
	void pointerPressEvent(MAPoint2d point);
	void pointerReleaseEvent(MAPoint2d point);
	void show();
private:
		LRESProcessor* mProcessor;
		Layout* mLayout;
		ListBox* mItems;
		Label* mTitle;
		Widget* mSoftkey;
		bool isGetData;
};

#endif /* LCOMINDEX_H_ */
